home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3982 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  951 b 

  1. Path: fontina.cs.wisc.edu!flisakow
  2. From: flisakow@fontina.cs.wisc.edu (Shaun Flisakowski)
  3. Newsgroups: crl.general,comp.sys.sun.misc,comp.unix.sys5.misc,comp.lang.c,sci.math
  4. Subject: Re: Problem with C for the mathematical programm
  5. Date: 1 Feb 1996 09:00:24 GMT
  6. Organization: U of Wisconsin CS Dept
  7. Message-ID: <4epvf8$534@spool.cs.wisc.edu>
  8. References: <4epq2e$h4b@crl2.crl.com>
  9. NNTP-Posting-Host: fontina.cs.wisc.edu
  10.  
  11. In article <4epq2e$h4b@crl2.crl.com>, Iouri Sorkine <sorkin@crl.com> wrote:
  12. >
  13. >I execute "cc name.c" and receive "ld: Undefined symbol
  14. >                                       _cos
  15. >                                       _sin
  16. >and so on...                                ". 
  17. >What's wrong?        
  18.  
  19.     You didn't link in the math library, try something like:
  20.  
  21.     cc -c name.c
  22.     cc -o name name.o -lm
  23.  
  24. -- 
  25.     Shaun        flisakow@cs.wisc.edu
  26.  
  27.    "In your heart you know its flat."
  28.                            -Flat Earth Society
  29.